package com.financing.wap.dao.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.financing.wap.common.SqlName;
import com.financing.wap.dao.IActivitiesWinListDao;
import com.financing.wap.dto.ActivitiesWinListDTO;
import com.financing.wap.vo.ActivitiesWinListVo;


@SuppressWarnings({ "deprecation", "unchecked" })
@Repository("activitiesWinListDaoImpl")
public class ActivitiesWinListDaoImpl extends BaseDaoImpl<ActivitiesWinListDTO, java.lang.Integer> implements IActivitiesWinListDao {

	
	@Override
	public List<ActivitiesWinListVo> getActivitiesWinListList(Map<String, Object> map) throws SQLException {
		return (List<ActivitiesWinListVo>)this.sqlMapClientTemplate.queryForList(SqlName.queryActivitiesWinListList, map);
	}

	@Override
	public int addActivitiesWinList(ActivitiesWinListDTO activitiesWinListDTO)
			throws SQLException {
		return (Integer) this.sqlMapClientTemplate.insert(SqlName.addActivitiesWinList, activitiesWinListDTO);
	}

	@Override
	public int queryActivitiesWinListCount(
			Map<String, Object> map) throws SQLException {
		return (Integer)this.sqlMapClientTemplate.queryForObject(SqlName.queryActivitiesWinListCount, map);
	}

	@Override
	public int delActivitiesWinList(ActivitiesWinListDTO activitiesWinListDTO)
			throws SQLException {
		return (Integer)this.sqlMapClientTemplate.delete(SqlName.deleteActivitiesWinList, activitiesWinListDTO);
	}
	@Override
	public Class<ActivitiesWinListDTO> getEntityClass() {
		return ActivitiesWinListDTO.class;
	}

}
